package cn.ry.test;

import cn.ry.pojo.SysUser;
import cn.ry.service.UserService;
import com.github.pagehelper.PageInfo;
import org.junit.Test;
import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext-mybatis.xml")
public class TsetService {
   @Autowired
   private UserService userService;
    @Test
    public void test01(){
        PageInfo<SysUser> sysUserPageInfo = userService.queryByPage(null, 1, 3);
        System.out.println(sysUserPageInfo);
        System.out.println("898");
    }
}
